package sctu.edu.java.year2016.team04.luoxinghua.day20160521.chapter5_1;

/**
 *输入一个数组，遍历输出
 *  Created by 落叶的思恋 on 2016/5/21.
 */
import java.util.Scanner;
public class scanprintf {

    public static void main(String[] args) {
        Scanner scan=new Scanner(System.in);
        int arr[] = new int[10];

        for(int i=0;i<arr.length;i++)
        {   arr[i] = scan.nextInt();
        }
        System.out.println("循环遍历输出");
        for(int i=0;i<arr.length;i++)
        {  System.out.print(arr[i] + "");
        }
        System.out.print("\n");
        for(int item:arr )
            System.out.print(item+ " ");

    }
}
